#region

using Vin.Extension.Framework.Aop;
using Vin.Extension.Framework.Monitor.Dto.Entities;
using Vin.Extension.Framework.Monitor.Dto.List;

#endregion

namespace Vin.Extension.Framework.Monitor.ServiceInterface;

public interface ISysLoginLogService
{
    public Task<List<SysLoginLogDto>> ListAsync(SysLoginLogListDto dto);

    /// <summary>
    /// 添加登录日志
    /// </summary>
    [VinFrameworkTransaction]
    public Task AddLoginLogAsync(string type, long? accountId, string? account, bool isSuccess, string? msg,
        string? loginType, object? loginInfo, long? userId, string? userName);

    /// <summary>
    /// 更新登录日志
    /// </summary>
    public Task UpdateLoginLogAsync(long? employeeId = null, string? employeeName = null);
}